<?php
return array(
    //'配置项'=>'配置值'
    'DB_TYPE' => 'mysql', // 数据库类型
    'DB_HOST' => '127.0.0.1', // 服务器地址
    'DB_NAME' => 'yuijia', // 数据库名
    'DB_USER' => 'root', // 用户名
    'DB_PWD' => 'root', // 密码
    'DB_PORT' => '3306', // 端口
    'DB_PREFIX' => 'jqx_', // 数据库表前缀
    'DB_CHARSET'    =>  'utf8',      // 数据库编码默认采用utf8
//    'DB_DSN'  => 'msyql:host=localhost;dbname=shop_ycp;charset=utf8'
//    图片相关配置
    'IMAGE_CONFIG'  =>array(
        'maxSize' => 2048 * 1024,
        'exts' => array('jpg', 'gif', 'png', 'jpeg'),
        'rootPath'=> './Public/Uploads/',
        'viewPath'=> '/Public/Uploads/'
    ),
    'file_CONFIG'  =>array(
        'maxSize' => 2048 * 1024,
        'exts' => array('doc', 'docx', 'rar', 'xls','pdf'),
        'rootPath'=> './Public/Uploads/',
        'viewPath'=> '/Public/Uploads/'
    ),
    // 开启路由
    'URL_MODULE'   => 1,
    'URL_ROUTE_RULES' =>[
        'toBack' => 'Admin/Login/login',
        'cat' => 'Home/List/lst',
    ],
    'SHOW_PAGE_TRACE'  =>true,
);